// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/broadcast/api/BroadcastTaskApi'

import ListClass from '@api/broadcast/model/QueryMusicReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 下拉框 —————————————————————————————— //

  async getSelect(selectParam, TIP = '查询下拉框') {
    const DTO = CORE.grpcDTO(ListClass, selectParam)
    const resp = await CORE.grpc(TIP, CLIENT, 'queryMusic', DTO)
    return resp.content || []
  },
}
